home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 78 / 078.d81 / art contest (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  5KB  |  193 lines

  1. 100 poke53280,0:poke53281,0
  2. 130 :
  3. 140 poke55,0:poke56,64:clr:a$=""
  4. 145 gosub60000
  5. 155 def fnd(i)=20-(len(ar$(x,i))/2)
  6. 160 sys57812"unpacker.89",8,0:poke780,0:poke781,0:poke782,201:sys65493
  7. 170 sys57812"package.o",8,0:poke780,0:poke781,80:poke782,195:sys65493
  8. 190 :
  9. 200 ip=50000:unpack=51456:hgr=51459
  10. 210 ps=50006:ba=50009
  11. 220 open2,8,2,"artists,p,r"
  12. 222 j=1:k=0:fori=0to1:sysip,2,40:i=st
  13. 224 ifa$="*"thenj=j+1:k=0:goto228
  14. 226 k=k+1:ar$(j,k)=a$
  15. 228 next:close2
  16. 230 readnp:dim r$(np),c(np),c$(7)
  17. 240 forx=1tonp:readr$(x),c(x)
  18. 250 next
  19. 270 forx=1tonp
  20. 280 gosub1810
  21. 285 fh=0:ifleft$(r$(x),2)="u."thenfh=1
  22. 290 sys57812r$(x),8,0:poke780,0:poke781,0:poke782,64:sys65493
  23. 300 :
  24. 310 gosub1910:ifa$="q"ora$="[209]"thengosub1250
  25. 312 gosub2000
  26. 340 kk=0:poke198,0
  27. 355 ifz3=0then360
  28. 357 z4=z4+1:z4=z4and15
  29. 358 poke53281,z4
  30. 360 kk=kk+1:geta$:ifa$=""andkk<800then355
  31. 370 ifa$="q"ora$="[209]"thengosub 1250
  32. 380 ifa$="s"ora$="[211]"then 470
  33. 390 ifa$<>chr$(133)then410
  34. 400 z1=z1+1:z1=z1and15
  35. 405 poke53280,z1:goto340
  36. 410 ifa$<>chr$(134)then416
  37. 412 z2=z2+1:z2=z2and15
  38. 415 poke53281,z2:goto340
  39. 416 ifa$<>chr$(135)then420
  40. 417 z3=z3+1:z3=z3and1:goto340
  41. 420 syshgr:print"[147]":poke198,0:next x
  42. 430 goto270
  43. 440 :
  44. 450 rem save koala pic
  45. 460 :
  46. 470 sys hgr
  47. 480 poke53280,0:poke53281,0
  48. 490 print"[147][154]":poke214,11:print
  49. 492 ifr$(x)<>"piranha.shp"then500
  50. 494 print"   [212]his is a hi-res picture and can't"
  51. 496 print"   be saved.  [208]ress a key to continue.":poke198,0
  52. 498 geta$:ifa$=""then498
  53. 499 goto1110
  54. 500 print"   [211]ave this unpacked picture? (y[154]/n[154])":poke198,0
  55. 510 geta$:ifa$<>"y"anda$<>"n"then510
  56. 520 ifa$="y"then560
  57. 530 goto1110
  58. 550 :
  59. 560 print"[147][154]":poke214,9:print
  60. 570 print"  [197]nter file name to save."
  61. 580 :
  62. 590 print"       [206]ame : ---------------[145][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][193][146]";
  63. 600 ln%=14:sp$="                "
  64. 610 gosub680:ifnm$=""then1110
  65. 620 nm$=left$(chr$(129)+nm$+sp$,15)
  66. 650 goto820
  67. 680 rem --- input routine ---
  68. 690 nm$="":x%=0:c%=peek(646)
  69. 700 print"[152][164][157]";:poke646,c%
  70. 710 geta$:ifa$=""then710
  71. 720 a%=asc(a$)
  72. 730 ifa%=20andx%>0thenx%=x%-1:nm$=left$(nm$,len(nm$)-1):print" [157][157]";:goto700
  73. 740 ifa%=20then710
  74. 750 ifa%=13thenprint" ":return
  75. 760 ifx%=ln%then710
  76. 770 ifa$<" "ora$>"z"anda$<"[193]"ora$>"[218]"ora%=34then710
  77. 780 nm$=nm$+a$:print""a$;:x%=x%+1:goto700
  78. 790 :
  79. 800 rem -- check for 'file exists' --
  80. 810 :
  81. 820 open15,8,15,"r0:"+nm$+"="+nm$:input#15,er,er$:close15
  82. 830 ifer<>62thengosub1160:goto1110
  83. 840 :
  84. 850 rem ---      save pic       ---
  85. 860 :
  86. 920 gosub2000:nm$=nm$+",p,w"
  87. 930 sysps,nm$:syshgr
  88. 950 :
  89. 960 rem --- check for errors ---
  90. 970 :
  91. 980 open15,8,15:input#15,er,er$,y$,z$:close15
  92. 990 iferthengosub1160:goto490
  93. 1000 :
  94. 1010 rem --    everything ok    ---
  95. 1020 :
  96. 1030 poke53280,0:poke53281,0
  97. 1040 print"[147][154]":poke214,7:print
  98. 1050 print"             [211]aving complete."
  99. 1060 print"   [208]ut the [204][207][193][196][211][212][193][210] disk back in"
  100. 1070 print"     the drive and press [211][208][193][195][197][154]."
  101. 1080 geta$:ifa$<>" "then1080
  102. 1090 open15,8,15,"r0:package.o=package.o":input#15,er:close15
  103. 1100 ifer<>63 then 1040
  104. 1110 syshgr:goto420
  105. 1120 :
  106. 1130 :
  107. 1140 :
  108. 1150 rem ---   print dos error msg ---
  109. 1160 :
  110. 1170 poke53280,.:poke53281,.:print"[147]        [129] [196] [201] [211] [203]   [197] [210] [210] [207] [210] !
  111. 1180 [151]214,10:[153]
  112. 1190 a$[178]"print#valrror #"[170][196](er)[170]"print#,"[170]er$
  113. 1200 x%[178]22[171][195](a$)[173]2:[153][163]x%);a$
  114. 1210 [151]214,21:[153]
  115. 1220 [153]"print#        (NULL)ress (NULL)(NULL)atnlenvalprint# to continue."
  116. 1230 [161]a$:[139]a$[179][177]" "[167]1230
  117. 1240 [142]
  118. 1250 o[178][194](53270)[175]16
  119. 1255 [139]o[167][158]51459
  120. 1260 [151]53281,0:[151]53280,0
  121. 1270 [153]"loadcont  atnre you sure you want to quit? (ycont/ncont)"
  122. 1280 [151]198,0:[146]198,1:[161]ag$
  123. 1290 [139]ag$[178]"y"[176]ag$[178]"(NULL)"[167]1330
  124. 1295 [139]o[167][158]51459
  125. 1300 [142]
  126. 1320 [143] quit
  127. 1330 [159]15,8,15,"r0:hello connect=hello connect":[132]15,er:[160]15
  128. 1340 [139]er[179][177]63[167][153]"load":[128]
  129. 1350 [153]"loadstopload"[199](34)"hello connect"[199](34)",8"
  130. 1360 [153]"run"
  131. 1370 [151]631,13:[151]632,13:[151]198,2:[128]
  132. 1380 [143] data <title>,<border color>
  133. 1390 [131] 9
  134. 1400 [131] da wiz.shp,0
  135. 1410 [131] u.ghost.shp,0
  136. 1420 [131] piranha.shp,0
  137. 1430 [131] hallow's eve.shp,0
  138. 1440 [131] u.rooster.shp,0
  139. 1450 [131] downtown.shp,0
  140. 1460 [131] eyes.shp,0
  141. 1470 [131] gunship.shp,0
  142. 1480 [131] butterfly.shp,0
  143. 1500 :
  144. 1770 [153]"";
  145. 1800 :
  146. 1810 [151]53281,9:[151]53280,9
  147. 1820 [153]"loadstop ortantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantan^"
  148. 1830 [129]qx[178]1[164]13
  149. 1840 [153]" (NULL)"[163]38)"(NULL)":[130]
  150. 1850 [153]" /tantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantanexp"
  151. 1860 [129]lx[178]217[164]217[170]26:[151]lx,([194](lx)[176]128):[130]
  152. 1870 [153]""
  153. 1872 [153][163][165]d(1))ar$(x,1):[153]
  154. 1874 [153][163]20[171]([195](ar$(x,2)))[173]2)ar$(x,2)
  155. 1875 [153][163]20[171]([195](ar$(x,3)))[173]2)ar$(x,3):[153]
  156. 1876 [153][163][165]d(4))ar$(x,4):[153]
  157. 1880 [129]i[178]5[164]9:[139]ar$(x,i)[178]"*"[167]i[178]9:[137]1886
  158. 1882 [153][163][165]d(i))ar$(x,i)
  159. 1886 [130]
  160. 1900 [142]
  161. 1910 kk[178]0
  162. 1915 [151]214,15:[153]:[153]"stop     (NULL)hile the slide is showing..."
  163. 1916 [153]"      asc1 sys- changes border color"
  164. 1917 [153]"      asc3 sys- changes background color"
  165. 1918 [153]"      asc5 sys- toggles light show"
  166. 1919 [153]"       (NULL) sys- takes you to (NULL)atn(NULL)val routine"
  167. 1920 [153]"       (NULL) sys- quits to (NULL)(NULL)atnstr$(NULL)(NULL)atn(NULL)"
  168. 1925 [151]214,23:[153]
  169. 1930 [153]"stop(NULL)ress (NULL) to quit - atnny other to continueon"
  170. 1940 kk[178]kk[170]1:[161]a$:[139]a$[179][177]""[176]kk[177]1000[167][142]
  171. 1950 [137]1940
  172. 1980 :
  173. 1990 :
  174. 2000 [153]"load";:[139]fh[167][151]254,0:[158]ba:[137]2040
  175. 2020 [151]251,64:[151]252,224:[151]253,204
  176. 2030 [158]un
  177. 2040 [151]53280,c(x):[151]252,224:[151]253,204:[158]hgr:[142]
  178. 2050 [142]
  179. 10000 [159]15,8,15,"s0:art contest":[160]15:[148]"art contest",8:[128]
  180. 60000 [153]"loadfor          (NULL)left$val (NULL)right$chr$left$(NULL)(NULL) (NULL)(NULL)atnstr$(NULL)(NULL)atn(NULL)"
  181. 60010 [153]"          atn(NULL)(NULL) len(NULL)(NULL)(NULL)val(NULL)(NULL) (NULL)asc 1990"
  182. 61000 [151]214,15:[153]
  183. 61110 [153]"  listfrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefre"
  184. 61120 [153]"  print#                                    "
  185. 61130 [153]"         atn (NULL) (NULL)   len (NULL) (NULL) (NULL) val (NULL) (NULL)        "
  186. 61140 [153]"      by (NULL)arious atnrtists  (len) 1990    "
  187. 61150 [153]"        (NULL)ublished on (NULL)(NULL)atnstr$(NULL)(NULL)atn(NULL) #78     "
  188. 61160 [153]"      (NULL)ubscriptions 1-800-831-2694    "
  189. 61170 [153]"           atnll (NULL)ights (NULL)eserved        "
  190. 61180 [153]"                                      "
  191. 61190 [153]"  pokepospospospospospospospospospospospospospospospospospospospospospospospospospospospospospospospospospospospos"
  192. 61200 [142]
  193.